package com.biz.primus.ms.tms.feign;

import com.biz.primus.model.depot.vo.EmployeeVo;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * DepotFeignClient
 *
 * @author JKLiues
 * @date 2017年11月21日
 */
@FeignClient(qualifier = "EmployeeFeignClient", name = "service-depot", fallback = EmployeeFeignClient.class)
public interface EmployeeFeignClient {

    /**
     * 通过员工ID查员工信息
     *
     * @param employeeId 员工ID
     * @return EmployeeVo
     */
    @GetMapping("soa/employeeService/findByEmployeeId")
    EmployeeVo findByEmployeeId(@ApiParam(value = "员工ID") @RequestParam("employeeId") Long employeeId);

    /**
     * 通过id查编号
     *
     * @param employeeId 员工id
     * @return String
     */
    @GetMapping("soa/employeeService/getCodeById")
    String getCodeById(@ApiParam(value = "员工ID") @RequestParam("employeeId") Long employeeId);

}